package com.aaa.sso.util;

import org.apache.shiro.authc.UsernamePasswordToken;

/**
 * @fileName:CustomUsernamePasswordToken
 * @description:
 * @author:zhz
 * @createTime:2020/12/8 8:42
 * @version:1.0.0
 */
public class CustomUsernamePasswordToken extends UsernamePasswordToken {

    private String loginType;


    /**
     * 构造，调用父类给userName和password赋值，添加自己类属性loginType
     * @param username
     * @param password
     * @param loginType
     */
    public CustomUsernamePasswordToken(String username, String password, String loginType) {
        super(username, password);
        this.loginType = loginType;
    }

    public String getLoginType() {
        return loginType;
    }

    public void setLoginType(String loginType) {
        this.loginType = loginType;
    }
}
